package com.exam.role.service;

import java.util.List;

import com.exam.role.model.Module;
import com.exam.role.model.Role;
import com.exam.role.model.Student;
import com.exam.role.model.Teacher;
import com.exam.util.Pagetools;

public interface RoleService {
	public List<Module> findMenusByPage(Module module, Pagetools page);

	public List<Module> findSubMenus();

	public void save(Object object);

	public Module getMenuById(Integer id);

	public Role getRole(Integer id);

	public List<Module> getMenuByRole(int roleId);

	public List<Student> getStudentByRole(int roleId, Student student,
			Pagetools page);

	public List<Teacher> findTeachersByPage(int roleId, Teacher teacher,
			Pagetools page);
	public List<Student> findStudentsByPage(int roleId, Student student,
			Pagetools page);

	public List<Teacher> getTeacherByRole(int roleId, Teacher teacher,
			Pagetools page);

	public List<Role> findRolesByPage(Role role, Pagetools page);

	public List<Module> getMenus(int roleId);

	public void saveMenus(String[] parents, String[] sons, Integer id);
	
}
